package org.example.mapper;

import org.example.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2023-05-15
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> selectByUserId(Long userId);

    List<Role> selectByUsername(String userName);
}
